package Command.control;

import Command.commandInterfaces.Command;

/**
 * 使用命令对象
 * @Author: pengzx
 * @Description:
 * @Date: 15:03 2017/9/12
 * @Modified by: 1.0
 */
public class SimpleRemoteControl {
    Command command;

    public void setCommand(Command command)
    {
        this.command = command;
    }

    public void buttonWasPressed(){
        command.execute();
    }
}
